//
//  DetailPostViewController.m
//  FlowerRainGround
//
//  Created by zfc on 16/4/20.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "DetailPostViewController.h"
#import "MyPostCollectionView.h"
#import "PicFooterView.h"
#import "DetailPostViewController.h"


@interface DetailPostViewController ()

@property (nonatomic,strong) UITextField *textField;

@end

@implementation DetailPostViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"帖子详情";
    
    
    self.model = self.recommendArray[_index];
    MyPostCollectionView *view = [[MyPostCollectionView alloc] initWithFrame:[UIScreen mainScreen].bounds];

    [view createPostCollectionViewWithModel:self.model];

    
    self.commentFreme = [ZFCCommentFrame zfcCreateView];
    self.commentFreme.frame = CGRectMake(10, kHeight - 64 - 50, kWidth - 20, 40);
   
    [view addSubview:self.commentFreme];
    self.commentFreme.TextView.text = nil;
    __block typeof(self)myself = self;
    self.commentFreme.sender = ^(NSString *title){
        NSLog(@"yy = /** %@ */",title);
        myself.commentFreme.TextView.text = nil;
        [myself.commentFreme.TextView resignFirstResponder];
    
    };
    [self.view addSubview:view];

   
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
